package com.gonsin.gview.model.tab;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.gonsin.gview.model.GBoardModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 单纯一个连接的board
 */
@Data
public class GLinkBoardModel extends GBoardModel {

    @ApiModelProperty("页面类型")
    private String boardType = "link";

    /**
     * 直接打开某路径
     */
    private String link;

    @Override
    public GBoardModel tClone() {
        GLinkBoardModel model = new GLinkBoardModel();
        BeanUtil.copyProperties(this, model, CopyOptions.create().setIgnoreNullValue(true));
        return model;
    }
}
